
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
//import {Storage, LocalStorage} from 'ionic-angular';
import { Observable } from 'rxjs/Observable';

import { HttpService } from "./HttpService";
import { StorageService } from "./StorageService";
/*
  用户访问后台的服务 
*/
@Injectable()
export class nailerService {
  constructor(
    private http: Http,
    private httpService: HttpService,
    private storageService: StorageService) {
  }

   /*获取周边文章列表*/
   uploadCommon(param) {
    var url = "uploadCommon";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /*获取周边文章列表*/
  getTextList(param) {
    var url = "getTabBarArticlesAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /*获取周边文章详情*/
  getTextDetail(param) {
    var url = "getArticleDetailsAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /*获取美甲师信息列表*/
  getNailerList(param) {
    var url = "getTabBarArtistsAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**点赞 */
  zankNail(param) {
    var url = "zankNailAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**关注 */
  getUserFocus(param) {
    var url = "focusAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**发表评论 */
  publishArticleComment(param) {
    var url = "publishArticleCommentAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**发布文章 */
  publishNearArticle(param) {
    var url = "publishNearArticleAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**搜索文章 */
  searchArticle(param) {
    var url = "searchArticleAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲师订单 */
  artistIncome(param) {
    var url = "artistIncomeAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲师认证 */
  registerNailArtist(param) {
    var url = "registerNailArtistAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲店认证 */
  registerShopkeeperAPI(param) {
    var url = "registerShopkeeperAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲师管理自己的美甲款式 */
  showArtistManage(param) {
    var url = "showArtistManageAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲师删除自己的美甲款式 */
  delServiceOrNailAPI(param) {
    var url = "delServiceOrNailAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲师搜索店铺 */
  searchShopIDAPI(param) {
    var url = "searchShopIDAPI";
    return this.httpService.httpGetNoAuth(url,param)
  }
  /**美甲师申请加入美甲店 */
  applyForShopArtistAPI(param) {
    var url = "applyForShopArtistAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**邀请美甲师入驻 */
  shopInvitationNailAPI(param) {
    var url = "shopInvitationNailAPI";
    return this.httpService.httpPostNoAuth(url, param);
  }
  /**美甲店铺信息 */
  myShopInfoAPI(param){
    var url="myShopInfoAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /**管理店铺秀 管理美甲师*/
  showShopManageAPI(param){
    var url="showShopManageAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  
  /**管理店铺编辑 删除 */
  editShopServiceAPI(param){
    var url="editShopServiceAPI ";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /*获取总的收益支出和当日的收益和支出*/
  getShopIncomeAPI(param){
     var url="getShopIncomeAPI";
     return this.httpService.httpPostNoAuth(url,param);
   }
   /*获取店铺的收益账单*/
   showShopIncomeListAPI(param){
    var url="showShopIncomeListAPI";
    return this.httpService.httpPostNoAuth(url,param);
   }
   /*获取美甲师账单列表*/
   artistIncomeAPI(param){
     var url="artistIncomeAPI";
     return this.httpService.httpPostNoAuth(url,param);
   }
   /*获取美甲师账单详情*/
   artistIncomeDetailsAPI(param){
    var url="artistIncomeDetailsAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  /*获取美甲店的账单详情*/
  showOrderAPI(param){
    var url="showOrderAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  
  /**发布评论 */
  commentOrderAPI(param){
    var url="commentOrderAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /**选择订单上架 */
  getShopBuyNailListAPI(param){
    var url="getShopBuyNailListAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /**发布服务 */
  addShopServerAPI(param){
    var url="addShopServerAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /**修改店铺的信息 */
  editMyShopInfoAPI(param){
    var url="editMyShopInfoAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }

  /**
   * 提现
   */
  withDrawAPI(param){
    var url="withDrawAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  /**删除图片 */
  delImg(param){
    var url="delImg";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //搜索店铺服务
  searchShopServiceAPI(param){
    var url="searchShopServiceAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //搜索收藏及自己的美图每款及美图
  searchCollectionAPI(param){
    var url="searchCollectionAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //店主拒绝接单
  shopkeeperRefuseOrderAPI(param){
    var url="shopkeeperRefuseOrderAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //美甲师或美甲店主提现列表
  cashBalanceAPI(param){
    var url="cashBalanceAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //美甲店主回复评论
  shopkeeperReplayAPI(param){
    var url="shopkeeperReplayAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
  //获取美甲师订单
  getArtistOrderListAPI(param){
    var url="getArtistOrderListAPI";
    return this.httpService.httpPostNoAuth(url,param);
  }
}
